package org.edu.modules.sxjy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.edu.modules.sxjy.entity.VeEstate;
import org.edu.modules.sxjy.mapper.VeEstateMapper;
import org.edu.modules.sxjy.service.IVeEstateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VeEstateServiceImpl
        extends ServiceImpl<VeEstateMapper, VeEstate>
        implements IVeEstateService
{
    @Autowired
    VeEstateMapper veEstateMapper;

    public List<VeEstate> selectAllList(VeEstate veEstate)
    {
        return this.veEstateMapper.selectAllList(veEstate);
    }

    public List<VeEstate> selectAll(VeEstate veEstate, Integer startLine, Integer pageSize)
    {
        return this.veEstateMapper.selectAll(veEstate, startLine, pageSize);
    }

    public int getEstateId(String estateTitle)
    {
        return this.veEstateMapper.getEstateId(estateTitle);
    }

    public int getSumPage(VeEstate veEstate)
    {
        return this.veEstateMapper.getSumPage(veEstate);
    }

    public VeEstate getEstate(String estateTitle)
    {
        return this.veEstateMapper.getEstate(estateTitle);
    }
}
